package net.jeeshop.web.action.front.bbs;

import net.jeeshop.core.Services;
import net.jeeshop.services.front.bbs.BbsCategoryService;
import net.jeeshop.services.front.bbs.bean.BbsCategory;
import net.jeeshop.web.action.front.FrontBaseController;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by zuohao on 16/7/7.
 */
@Controller("frontBbsCategoryAction")
@RequestMapping("bbsCategory")
public class BbsCategoryAction extends FrontBaseController<BbsCategory> {

    private static final org.slf4j.Logger logger = LoggerFactory.getLogger(BbsCategoryAction.class);


    @Autowired
    private BbsCategoryService bbsCategoryService;

    @Override
    public Services<BbsCategory> getService() {
        return bbsCategoryService;
    }

    @RequestMapping("selectBbsCategoryList")
    @ResponseBody
    public List selectBbsCategoryList(){
        List<BbsCategory> bbsCategoryList=bbsCategoryService.selectBbsCategoryList();
        return bbsCategoryList;
    }

}
